package sangpil.preparation.displayObject
{
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;

	public class CoverInvisibleRect extends Object
	{
		public function CoverInvisibleRect()
		{
			super();
		}
		
		public static function CoverAlphaRect(dp:DisplayObjectContainer, alpha:Number = 0):void
		{	
			var rect:Sprite = new Sprite();
			rect.graphics.beginFill(0x000000, alpha);
			rect.graphics.drawRect(0, 0, dp.width, dp.height);
			rect.graphics.endFill();
			
			dp.addChild(rect);
			trace('test');
		}
	}
}